#!/usr/bin/env bash

echo $1

echo
node $1 &
pid=$!

sleep 2

wrk 'http://localhost:8000/badjs?msg=hello' \
  -d 30 \
  -c 50 \
  -t 8 \
  --timeout 10s \

kill $pid